package com.api.oauthservices.getrequesttoken;

import org.springframework.test.context.ContextConfiguration;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import com.api.services.OAuthServices;
import com.api.test.AbstractApiTest;
import com.api.test.VoidContextLoader;
import com.zyncro.api.exceptions.ZyncroApiException;

@ContextConfiguration(loader = VoidContextLoader.class)
public class GetRequestTokenTest extends AbstractApiTest {

	private String userUrn;
	private String userPassword;

	@BeforeClass
	protected void setParameters() throws Exception {

		this.userUrn = "qazyncro@gmail.com";
		this.userPassword = "123456";

		getApi().login(userUrn, userPassword);
	}

	@Test
	public void testGetGroups() throws ZyncroApiException {

		getApi().getService(OAuthServices.class).getRequestToken();
	}
}
